package order

import "gitee.com/tietang/terrace-go/v2/base"

var IOrderService OrderService

//用于对外暴露账户应用服务，唯一的暴露点
func GetOrderService() OrderService {
	base.Check(IOrderService)
	return IOrderService
}

type OrderService interface {
	Create(dto OrderCreatedDTO) (*OrderDTO, error)
	ChangeStatus(dto OrderChangeStatusDTO) (OrderChangeStatus, error)
	Get(tradeNo string) *OrderDTO
}
